package day17.animal;

public abstract class animal {

    public animal() {}

    public String name;

    public int age;

    public String color;

    public animal(String name, int age, String color) {
        this.name = name;
        this.age = age;
        this.color = color;
    }

    public void eat() {
        System.out.println("动物吃东西");
    }

    public void sleep() {
        System.out.println("动物睡大觉");
    }

    public abstract void run();
}